package com.jyh.dbOrder.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class JyhLoanTypeExample {
    /**
     * jyh_loan_type
     */
    protected String orderByClause;

    /**
     * jyh_loan_type
     */
    protected boolean distinct;

    /**
     * jyh_loan_type
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public JyhLoanTypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-10-16
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * jyh_loan_type 2017-10-16
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTypenoIsNull() {
            addCriterion("typeNO is null");
            return (Criteria) this;
        }

        public Criteria andTypenoIsNotNull() {
            addCriterion("typeNO is not null");
            return (Criteria) this;
        }

        public Criteria andTypenoEqualTo(String value) {
            addCriterion("typeNO =", value, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoNotEqualTo(String value) {
            addCriterion("typeNO <>", value, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoGreaterThan(String value) {
            addCriterion("typeNO >", value, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoGreaterThanOrEqualTo(String value) {
            addCriterion("typeNO >=", value, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoLessThan(String value) {
            addCriterion("typeNO <", value, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoLessThanOrEqualTo(String value) {
            addCriterion("typeNO <=", value, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoLike(String value) {
            addCriterion("typeNO like", value, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoNotLike(String value) {
            addCriterion("typeNO not like", value, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoIn(List<String> values) {
            addCriterion("typeNO in", values, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoNotIn(List<String> values) {
            addCriterion("typeNO not in", values, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoBetween(String value1, String value2) {
            addCriterion("typeNO between", value1, value2, "typeno");
            return (Criteria) this;
        }

        public Criteria andTypenoNotBetween(String value1, String value2) {
            addCriterion("typeNO not between", value1, value2, "typeno");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(BigDecimal value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(BigDecimal value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(BigDecimal value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(BigDecimal value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<BigDecimal> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<BigDecimal> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andLoantermIsNull() {
            addCriterion("loanTerm is null");
            return (Criteria) this;
        }

        public Criteria andLoantermIsNotNull() {
            addCriterion("loanTerm is not null");
            return (Criteria) this;
        }

        public Criteria andLoantermEqualTo(Integer value) {
            addCriterion("loanTerm =", value, "loanterm");
            return (Criteria) this;
        }

        public Criteria andLoantermNotEqualTo(Integer value) {
            addCriterion("loanTerm <>", value, "loanterm");
            return (Criteria) this;
        }

        public Criteria andLoantermGreaterThan(Integer value) {
            addCriterion("loanTerm >", value, "loanterm");
            return (Criteria) this;
        }

        public Criteria andLoantermGreaterThanOrEqualTo(Integer value) {
            addCriterion("loanTerm >=", value, "loanterm");
            return (Criteria) this;
        }

        public Criteria andLoantermLessThan(Integer value) {
            addCriterion("loanTerm <", value, "loanterm");
            return (Criteria) this;
        }

        public Criteria andLoantermLessThanOrEqualTo(Integer value) {
            addCriterion("loanTerm <=", value, "loanterm");
            return (Criteria) this;
        }

        public Criteria andLoantermIn(List<Integer> values) {
            addCriterion("loanTerm in", values, "loanterm");
            return (Criteria) this;
        }

        public Criteria andLoantermNotIn(List<Integer> values) {
            addCriterion("loanTerm not in", values, "loanterm");
            return (Criteria) this;
        }

        public Criteria andLoantermBetween(Integer value1, Integer value2) {
            addCriterion("loanTerm between", value1, value2, "loanterm");
            return (Criteria) this;
        }

        public Criteria andLoantermNotBetween(Integer value1, Integer value2) {
            addCriterion("loanTerm not between", value1, value2, "loanterm");
            return (Criteria) this;
        }

        public Criteria andDayratesIsNull() {
            addCriterion("dayRates is null");
            return (Criteria) this;
        }

        public Criteria andDayratesIsNotNull() {
            addCriterion("dayRates is not null");
            return (Criteria) this;
        }

        public Criteria andDayratesEqualTo(BigDecimal value) {
            addCriterion("dayRates =", value, "dayrates");
            return (Criteria) this;
        }

        public Criteria andDayratesNotEqualTo(BigDecimal value) {
            addCriterion("dayRates <>", value, "dayrates");
            return (Criteria) this;
        }

        public Criteria andDayratesGreaterThan(BigDecimal value) {
            addCriterion("dayRates >", value, "dayrates");
            return (Criteria) this;
        }

        public Criteria andDayratesGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("dayRates >=", value, "dayrates");
            return (Criteria) this;
        }

        public Criteria andDayratesLessThan(BigDecimal value) {
            addCriterion("dayRates <", value, "dayrates");
            return (Criteria) this;
        }

        public Criteria andDayratesLessThanOrEqualTo(BigDecimal value) {
            addCriterion("dayRates <=", value, "dayrates");
            return (Criteria) this;
        }

        public Criteria andDayratesIn(List<BigDecimal> values) {
            addCriterion("dayRates in", values, "dayrates");
            return (Criteria) this;
        }

        public Criteria andDayratesNotIn(List<BigDecimal> values) {
            addCriterion("dayRates not in", values, "dayrates");
            return (Criteria) this;
        }

        public Criteria andDayratesBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("dayRates between", value1, value2, "dayrates");
            return (Criteria) this;
        }

        public Criteria andDayratesNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("dayRates not between", value1, value2, "dayrates");
            return (Criteria) this;
        }

        public Criteria andRatesumIsNull() {
            addCriterion("rateSum is null");
            return (Criteria) this;
        }

        public Criteria andRatesumIsNotNull() {
            addCriterion("rateSum is not null");
            return (Criteria) this;
        }

        public Criteria andRatesumEqualTo(BigDecimal value) {
            addCriterion("rateSum =", value, "ratesum");
            return (Criteria) this;
        }

        public Criteria andRatesumNotEqualTo(BigDecimal value) {
            addCriterion("rateSum <>", value, "ratesum");
            return (Criteria) this;
        }

        public Criteria andRatesumGreaterThan(BigDecimal value) {
            addCriterion("rateSum >", value, "ratesum");
            return (Criteria) this;
        }

        public Criteria andRatesumGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("rateSum >=", value, "ratesum");
            return (Criteria) this;
        }

        public Criteria andRatesumLessThan(BigDecimal value) {
            addCriterion("rateSum <", value, "ratesum");
            return (Criteria) this;
        }

        public Criteria andRatesumLessThanOrEqualTo(BigDecimal value) {
            addCriterion("rateSum <=", value, "ratesum");
            return (Criteria) this;
        }

        public Criteria andRatesumIn(List<BigDecimal> values) {
            addCriterion("rateSum in", values, "ratesum");
            return (Criteria) this;
        }

        public Criteria andRatesumNotIn(List<BigDecimal> values) {
            addCriterion("rateSum not in", values, "ratesum");
            return (Criteria) this;
        }

        public Criteria andRatesumBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rateSum between", value1, value2, "ratesum");
            return (Criteria) this;
        }

        public Criteria andRatesumNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rateSum not between", value1, value2, "ratesum");
            return (Criteria) this;
        }

        public Criteria andServicemoneyIsNull() {
            addCriterion("serviceMoney is null");
            return (Criteria) this;
        }

        public Criteria andServicemoneyIsNotNull() {
            addCriterion("serviceMoney is not null");
            return (Criteria) this;
        }

        public Criteria andServicemoneyEqualTo(BigDecimal value) {
            addCriterion("serviceMoney =", value, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andServicemoneyNotEqualTo(BigDecimal value) {
            addCriterion("serviceMoney <>", value, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andServicemoneyGreaterThan(BigDecimal value) {
            addCriterion("serviceMoney >", value, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andServicemoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("serviceMoney >=", value, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andServicemoneyLessThan(BigDecimal value) {
            addCriterion("serviceMoney <", value, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andServicemoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("serviceMoney <=", value, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andServicemoneyIn(List<BigDecimal> values) {
            addCriterion("serviceMoney in", values, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andServicemoneyNotIn(List<BigDecimal> values) {
            addCriterion("serviceMoney not in", values, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andServicemoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("serviceMoney between", value1, value2, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andServicemoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("serviceMoney not between", value1, value2, "servicemoney");
            return (Criteria) this;
        }

        public Criteria andOverduerateIsNull() {
            addCriterion("overdueRate is null");
            return (Criteria) this;
        }

        public Criteria andOverduerateIsNotNull() {
            addCriterion("overdueRate is not null");
            return (Criteria) this;
        }

        public Criteria andOverduerateEqualTo(BigDecimal value) {
            addCriterion("overdueRate =", value, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduerateNotEqualTo(BigDecimal value) {
            addCriterion("overdueRate <>", value, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduerateGreaterThan(BigDecimal value) {
            addCriterion("overdueRate >", value, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduerateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("overdueRate >=", value, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduerateLessThan(BigDecimal value) {
            addCriterion("overdueRate <", value, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduerateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("overdueRate <=", value, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduerateIn(List<BigDecimal> values) {
            addCriterion("overdueRate in", values, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduerateNotIn(List<BigDecimal> values) {
            addCriterion("overdueRate not in", values, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduerateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("overdueRate between", value1, value2, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduerateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("overdueRate not between", value1, value2, "overduerate");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyIsNull() {
            addCriterion("overdueMoney is null");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyIsNotNull() {
            addCriterion("overdueMoney is not null");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyEqualTo(BigDecimal value) {
            addCriterion("overdueMoney =", value, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyNotEqualTo(BigDecimal value) {
            addCriterion("overdueMoney <>", value, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyGreaterThan(BigDecimal value) {
            addCriterion("overdueMoney >", value, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("overdueMoney >=", value, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyLessThan(BigDecimal value) {
            addCriterion("overdueMoney <", value, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("overdueMoney <=", value, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyIn(List<BigDecimal> values) {
            addCriterion("overdueMoney in", values, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyNotIn(List<BigDecimal> values) {
            addCriterion("overdueMoney not in", values, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("overdueMoney between", value1, value2, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andOverduemoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("overdueMoney not between", value1, value2, "overduemoney");
            return (Criteria) this;
        }

        public Criteria andRepaymethodIsNull() {
            addCriterion("repayMethod is null");
            return (Criteria) this;
        }

        public Criteria andRepaymethodIsNotNull() {
            addCriterion("repayMethod is not null");
            return (Criteria) this;
        }

        public Criteria andRepaymethodEqualTo(String value) {
            addCriterion("repayMethod =", value, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodNotEqualTo(String value) {
            addCriterion("repayMethod <>", value, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodGreaterThan(String value) {
            addCriterion("repayMethod >", value, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodGreaterThanOrEqualTo(String value) {
            addCriterion("repayMethod >=", value, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodLessThan(String value) {
            addCriterion("repayMethod <", value, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodLessThanOrEqualTo(String value) {
            addCriterion("repayMethod <=", value, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodLike(String value) {
            addCriterion("repayMethod like", value, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodNotLike(String value) {
            addCriterion("repayMethod not like", value, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodIn(List<String> values) {
            addCriterion("repayMethod in", values, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodNotIn(List<String> values) {
            addCriterion("repayMethod not in", values, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodBetween(String value1, String value2) {
            addCriterion("repayMethod between", value1, value2, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRepaymethodNotBetween(String value1, String value2) {
            addCriterion("repayMethod not between", value1, value2, "repaymethod");
            return (Criteria) this;
        }

        public Criteria andRedrateIsNull() {
            addCriterion("redRate is null");
            return (Criteria) this;
        }

        public Criteria andRedrateIsNotNull() {
            addCriterion("redRate is not null");
            return (Criteria) this;
        }

        public Criteria andRedrateEqualTo(BigDecimal value) {
            addCriterion("redRate =", value, "redrate");
            return (Criteria) this;
        }

        public Criteria andRedrateNotEqualTo(BigDecimal value) {
            addCriterion("redRate <>", value, "redrate");
            return (Criteria) this;
        }

        public Criteria andRedrateGreaterThan(BigDecimal value) {
            addCriterion("redRate >", value, "redrate");
            return (Criteria) this;
        }

        public Criteria andRedrateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("redRate >=", value, "redrate");
            return (Criteria) this;
        }

        public Criteria andRedrateLessThan(BigDecimal value) {
            addCriterion("redRate <", value, "redrate");
            return (Criteria) this;
        }

        public Criteria andRedrateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("redRate <=", value, "redrate");
            return (Criteria) this;
        }

        public Criteria andRedrateIn(List<BigDecimal> values) {
            addCriterion("redRate in", values, "redrate");
            return (Criteria) this;
        }

        public Criteria andRedrateNotIn(List<BigDecimal> values) {
            addCriterion("redRate not in", values, "redrate");
            return (Criteria) this;
        }

        public Criteria andRedrateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("redRate between", value1, value2, "redrate");
            return (Criteria) this;
        }

        public Criteria andRedrateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("redRate not between", value1, value2, "redrate");
            return (Criteria) this;
        }
    }

    /**
     * jyh_loan_type
     *
     * @mbggenerated do_not_delete_during_merge 2017-10-16
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * jyh_loan_type 2017-10-16
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}